import * as THREE from 'three'
import { CSG } from 'three-csg-ts'
export default function useCsg() {
  function intersect(modelA: THREE.Mesh, modelB: THREE.Mesh) {
    const intRes = CSG.intersect(modelA, modelB)
    return intRes
  }

  return {
    intersect,
  }
}
